import request from '@/util/request.js';

/**
 * @description 首页数据
 * @param {Object} data
 */
export function getIndexDataApi(data) {
	return request({
		url: '/driver/getIndexData',
		method: 'GET',
		data
	})
}
/**
 * @description 查询投诉记录
 * @param {Object} data
 */
export function getComplaintRecordApi(data) {
	return request({
		url: '/driver/getComplaintRecord',
		method: 'GET',
		data
	})
}
/**
 * @description 查询投诉记录详情
 * @param {Object} data
 */
export function getFrontDataTableByIdApi(data) {
	return request({
		url: '/driver/getFrontDataTableById',
		method: 'GET',
		data
	})
}
/**
 * @description 查询车费记录
 * @param {Object} data
 */
export function getTravelRecordApi(data) {
	return request({
		url: '/driver/getTravelRecord',
		method: 'GET',
		data
	})
}
/**
 * @description 累计消费金额
 * @param {Object} data
 */
export function getAccumulatedExpensesApi(data) {
	return request({
		url: '/driver/getAccumulatedExpenses',
		method: 'GET',
		data
	})
}
/**
 * @description 通知公告1，安全教育2
 * @param {Object} data
 */
export function getNoticesPageApi(data) {
	return request({
		url: '/notice/applet/getNoticesPage',
		method: 'GET',
		data
	})
}
/**
 * @description 详情
 * @param {Object} data
 */
export function getNoticesByIdApi(data) {
	return request({
		url: '/notice/applet/getNoticesById',
		method: 'GET',
		data
	})
}
/**
 * @description 查询系统版本
 * @param {Object} data
 */
export function querySysVersionApi(data) {
	return request({
		url: '/driver/querySysVersion',
		method: 'GET'
	})
}